
SET(Stylesheets_Files
    "Behave-dark.qss"
    "Dark.qss"
    "Darker.qss"
    "Light.qss"
    "Dark-contrast.qss"
    "ProDark.qss"
    "Dark-modern.qss"
    "Light-modern.qss"
)

SET(Overlay_Stylesheets_Files
    "overlay/Dark.qss"
    "overlay/Light.qss"
    "overlay/Dark-Outline.qss"
    "overlay/Light-Outline.qss"
    "overlay/Darker_overlay.qss"
    "overlay/Dark_overlay.qss"
    "overlay/Dark-Modern_overlay.qss"
    "overlay/Light-Modern_overlay.qss"
    "overlay/Light_overlay.qss"
    "overlay/close.svg"
    "overlay/overlay.svg"
    "overlay/float.svg"
    "overlay/autohide.svg"
    "overlay/editshow.svg"
    "overlay/taskshow.svg"
    "overlay/edithide.svg"
    "overlay/mode.svg"
    "overlay/transparent.svg"
    "overlay/taskshow_light.svg"
    "overlay/mode_lighter.svg"
    "overlay/overlay_lighter.svg"
    "overlay/close_lighter.svg"
    "overlay/close_light.svg"
    "overlay/float_lighter.svg"
    "overlay/overlay_light.svg"
    "overlay/mode_light.svg"
    "overlay/transparent_light.svg"
    "overlay/float_light.svg"
    "overlay/transparent_lighter.svg"
    "overlay/close_red.svg"
)

# Find all the image files
FILE(GLOB Images_Files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
    "${CMAKE_CURRENT_SOURCE_DIR}/images_dark-light/*.svg")

SOURCE_GROUP("images_dark-light" FILES ${Images_Files})

ADD_CUSTOM_TARGET(Stylesheets_data ALL
    SOURCES ${Stylesheets_Files} ${Images_Files} ${Overlay_Stylesheets_Files}
)

fc_copy_sources(Stylesheets_data "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Gui/Stylesheets"
                                  ${Stylesheets_Files}
                                  ${Images_Files}
                                  ${Overlay_Stylesheets_Files})

INSTALL(
    FILES
        ${Stylesheets_Files}
    DESTINATION
        ${CMAKE_INSTALL_DATADIR}/Gui/Stylesheets
)
INSTALL(
    FILES
        ${Overlay_Stylesheets_Files}
    DESTINATION
        ${CMAKE_INSTALL_DATADIR}/Gui/Stylesheets/overlay
)
INSTALL(
    FILES
         ${Images_Files}
    DESTINATION
        ${CMAKE_INSTALL_DATADIR}/Gui/Stylesheets/images_dark-light
)
